﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.constructionmodule.AbstractFactory.NormalAbstractFactory
{
    public interface IUser
    {
        void Insert(User user);
        User GetUser(int id);
    }

    public class SqlserverUser : IUser
    {
        public void Insert(User user)
        {
            Console.WriteLine("SQL insert record");
        }

        public User GetUser(int id)
        {
            Console.WriteLine("Sqlserver getuser");
            return null;
        }
    }

    public class MysqlUser : IUser
    {
        public void Insert(User user)
        {
            Console.WriteLine("Mysql insert record");
        }

        public User GetUser(int id)
        {
            Console.WriteLine("Mysql getuser");
            return null;
        }
    }
}
